package cn.lzx.hrm.client;

import cn.lzx.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient(value = "HRM-THIRDPARTY",fallbackFactory = ThirdPartyServiceClientFallbackFactory.class)
public interface ThirdPartyServiceClient {

    /**
     * 校验图片验证码的请求
     * @param params
     * @return
     */
    @PostMapping("/imageVerifyCode/verify")
    AjaxResult verifyImgCode(@RequestBody Map<String,String> params);
    /**
     * 发送手机验证码
     * @param params
     * @return
     */
    @PostMapping("/smsVerifyCode/sendVerifyCode")
    AjaxResult sendSmsVerifyCode(@RequestBody Map<String,String> params);
    /**
     * 校验手机验证码
     */
    @PostMapping("/smsVerifyCode/verify")
    AjaxResult verifySmsCode(@RequestBody Map<String,String> params);

}
